package units;

import game.Costs;
import game.Technology;

public class Halberdier extends AbstractUnit {
	//*******************************************
	private static final int _healthpoints = 100;
	private static final int _attackMultiple = 1;
	private static final int _attack = 50;
	private static final int _defense = 2;
	private static final int _attackquality = 50;
	private static final int[] _attackRounds = {6,7,8,9,10,11,12,13,14,15,16,17,18,19,20};
	private static Costs costSetting = null;
	private static final int _buildPoints = 100;	
	//*******************************************

	public Halberdier() {
		super(_healthpoints, _attack, _defense, _attackquality, _attackMultiple, _attackRounds, _buildPoints);
		if (costSetting == null){
			costSetting = new Costs();
			costSetting.setIronCost(75);
			costSetting.setGoldCost(20);
			}
		this.setCosts(costSetting);
	}

	@Override
	int getAttackBonus() {
		return Technology.getHalberdierAttackBonus();
	}

	@Override
	int getDefenseBonus() {
		return Technology.getHalberdierDefenseBonus();
	}

	@Override
	int getAttackqualityBonus() {
		return Technology.getHalberdierAttackqualityBonus();
	}

	@Override
	int getHealthpointsBonus() {
		return Technology.getHalberdierHealthpointsBonus();
	}
}
